<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<!-- 下拉框 -->
<link rel="stylesheet" href="static/ace/css/chosen.css" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta charset="utf-8" />
		<title>编辑</title>
		<meta name="description" content="" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
		
		<link rel="stylesheet" href="static/ace/css/bootstrap.css" />
		<link rel="stylesheet" href="static/ace/css/font-awesome.css" />
		
		<!-- text fonts -->
		<link rel="stylesheet" href="static/ace/css/ace-fonts.css" />
		<!-- ace styles -->
		<link rel="stylesheet" href="static/ace/css/ace.css" class="ace-main-stylesheet" id="main-ace-style" />
		<script type="text/javascript" src="static/js/jquery-1.7.2.js" />
			<!--提示框-->
	<script type="text/javascript" src="static/js/jquery.tips.js"></script>
		<script type="text/javascript">
			$(top.hangge());
		</script>
</head>
<body>
	<div class="main-container" id="main-container">
		<div class="main-content">
			<div class="main-content-inner">
				<div class="page-content">
					<div class="row">
						<div class="col-xs-12">
							<form action="transportClause/addTransportClauseInfo" method="post" name="transportClauseForm" id="transportClauseForm">
								<div id="zhongxin" style="padding-top: 13px;">
								<fieldset>
											<table style="margin-top:5px;"class="table table-striped table-bordered table-hover">
											<tr>
												<td style="width:79px;text-align: right;padding-top: 13px;">快速检索码：</td>
												<td><input type="text" name="FAST_SEARCH_CODE" id="FAST_SEARCH_CODE" value="${pd.FAST_SEARCH_CODE }" maxlength="32" style="width:98%;"/></td>
											</tr>
											<tr>
<!-- 												<td style="width:79px;text-align: right;padding-top: 13px;">是否可用：</td> -->
<%-- 												<td><input type="text" name="ENABLE" id="ENABLE" value="${pd.ENABLE }" maxlength="32" style="width:98%;"/></td> --%>
													<td style="width:79px;text-align: right;padding-top: 13px;">是否可用：</td>
														<td>
														<select maxlength="32" style="width:98%;"name="ENABLE">
											
														  <option value="1" <c:if test="${pd.ENABLE==1 }">selected</c:if>>是</option>
														  <option value="0" <c:if test="${pd.ENABLE==0 }">selected</c:if>>否</option>
														</select>
														</td>
											</tr>
											<tr>
											<td style="width:79px;text-align: right;padding-top: 13px;">起始条款：</td>
												<td><input type="text" name="START_CLAUSE" id="START_CLAUSE" value="${pd.START_CLAUSE }" maxlength="32"  style="width:98%;"/></td>
											</tr>
											<tr>
											<td style="width:79px;text-align: right;padding-top: 13px;">终止条款：</td>
												<td><input type="text" name="END_CLAUSE" id="END_CLAUSE" value="${pd.END_CLAUSE }" maxlength="32" style="width:98%;"/></td>
											</tr>
											<tr>
												<td style="width:79px;text-align: right;padding-top: 13px;">备注：</td>
												<td><textarea id="REMARK" name="REMARK"style="width:98%;"></textarea></td>
												
											
											</tr>
											<tr>
											<td style="text-align: center;" colspan="10">
												<a class="btn btn-xs btn-success">
													<i class="ace-icon fa fa-pencil-square-o bigger-120" onclick="updateInfo('${pd.ID}');">保存</i>
												</a>
													<a class="btn btn-xs btn-success">
													<i class="ace-icon fa fa-pencil-square-o bigger-120" onclick="top.Dialog.close();">关闭</i>
												</a>
												</td>
											</table>
											</fieldset>
											</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript">
function updateInfo(ID){
		 $.ajax({
	         type: "POST",
	         url: '<%=basePath%>transportClause/addTransportClauseInfo?ID='+ID,
	         data: $("#transportClauseForm").serialize(),
	         dataType: 'json',
	         //beforeSend: validateData,
	         cache: false,
	         success: function (data) {
	        	 top.Dialog.close()
	        	 
	         }
	     });
	
}
</script>
</html>